Skip to main content
function | number
required
The function whose upvalue is returned.
number
required
The index of the upvalue to return.
Alias: getupvalue

Example

This code sample will print an upvalue from the function’s upvalue list.